#include<iostream>
#include<algorithm>
using namespace std;

// class Solution {
// public:
//     bool isPalindrome(int x) {
//         if(x < 0 && x % 10 == 0) return false;
//         else{
//             int y = 0, z = x;
//             while(z > 0) {
//                 y = (z % 10) * 10;
//                 cout << y << " ";
//                 z /= 10;
//             }
//             if(x == y) return true;
//             else return false;
//         }
//     }
// };

class Solution {
public:
    bool isPalindrome(int x) {
        if(x < 0 || (x != 0 && x % 10 == 0)) return false;
        else{
            int arr1[32] = {}, arr2[32] = {}, count = 0;
            for(int i = 0; x > 0; i++) {
                arr1[i] = x % 10;
                x /= 10;
                count++;
            }
            copy(begin(arr1), end(arr1), begin(arr2));
            reverse(arr2, arr2 + count);
            bool isEqual = equal(begin(arr1), end(arr1), begin(arr2));
            return isEqual;
        }
    }
};

int main()
{
    Solution s;
    int x = 0;
    if(s.isPalindrome(x)) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}